<?php
define('ROOT_PATH', substr(dirname(__FILE__),0,-7));
include_once(ROOT_PATH.'/configs/config.php');
include_once(ROOT_PATH.'/common/db.php');
include_once(ROOT_PATH.'/common/user.php');
include_once(ROOT_PATH.'/common/p_function.php');
include_once(ROOT_PATH.'/common/smarty/smarty.class.php');
$db = new mysql($db_hostname,$db_username,$db_password,$db_name,$db_char);
$smarty = new smarty();
$smarty->template_dir	     = $smarty_template_dir;
$smarty->compile_dir	     = $smarty_compile_dir;
$smarty->config_dir		     = $smarty_config_dir;
$smarty->cache_dir		     = $smarty_cache_dir;
$smarty->caching		     = $smarty_caching;
$smarty->left_delimiter      = $smarty_delimiter[0];
$smarty->right_delimiter     = $smarty_delimiter[1];
$smarty->assign("t_dir", $smarty_template_dir);